<?php

/**
 * Resources
 *  
 * @author RUMEAU
 * @version 
 */

require_once 'Zend/Db/Table/Abstract.php';

class Resources extends Zend_Db_Table_Abstract {
	/**
	 * The default table name 
	 */
	protected $_name = 'resources';
	
	public function getResources()
	{
		return $this->fetchAll();
	}
	
	public function getResource($name)
	{
		$where = $this->getAdapter()->quoteInto('name = ?', $name);
		
		$result = $this->fetchRow($where);
		
		return $result;
	}
}
